<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
      
      <!-- <div>啊啊啊啊啊啊啊</div> -->
        <div></div>

</body>
</html>
<script>
//获得div元素的中的值
let divObj=document.getElementsByTagName('div')[0];
// innerHTML 是识别html标签的
// innerText  是不识别html标签的
//let text = divObj.innerHTML;
//console.log(text);
//divObj.innerHTML="<h1>hello</h1>";
//divObj.innerText="<h1>hello</h1>";


</script>